package com.longrise.android.byjk.model;

import java.io.Serializable;
import java.util.List;

/**
 * Created by callxkj on 2017/4/10.
 * "bbt_course_sTrainResDirStructBean"这个接口返回的bean
 */

public class CourseTrainDirBean implements Serializable {

    public int resultstate;
    public String resultdesc;
    public Result result;

    public class Result implements Serializable {
        public boolean isablesignup;
        public boolean isclose;
        public boolean isfree;
        public String realpic;
        public String courseid;
        public String name;
        public String infosummary;
        public String completestate;
        public int grouptype;
        public int studystate;
        public String teachername;
        public String avgscore;
        public String grouptime;
        public boolean isrequired;
        public boolean isabletoprintcer;
        public String trainsignupid;
        public String studentno;
        public boolean issinguptrain;
        public String expiretime;
        public int residuedelaycoursecounts;
        public boolean isablestudy;
        public boolean isabledelaycourse;
        public Traindirstruct traindirstruct;

        //模拟测试题
        public boolean isexmusttrain;
        public List<Exconfigbean> exconfigbean;

        //v1.3.7加入
        public String copetraintime; //规定总学时
        public String overtime;  //已完成规定学时

    }

    public class Traindirstruct implements Serializable {
        public boolean ispass;
        public double totalfinishpct;
        public int coursetotalfinishcwcount;
        public int videopasscount;
        public List<Dirinfo> dirinfo;

        public double minitraintimetotal; //规定必修总学时
        public double minitraintimepassed; //已完成的必修学时
    }

    public class Dirinfo implements Serializable {
        public String name;
        public String dirid;
        public double finishpct;
        public int cwcount;
        public int finishedcwcount;
        public int unfinishedcwcount;
        public boolean ismusttrain;
        public List<Nextnodeinfo> nextnodeinfo;
    }

    public class Nextnodeinfo implements Serializable {
        public String name;
        public double totaltraintime;
        public String cwid;
        public String pathno;
        public String id;
        public boolean isfinish;
        public boolean videopass;
        public boolean hasqa;
        public boolean qapass;
        public String cwstyle;

        /**
         * 以下为兼容Exconfigbean 模拟测试题
         */
        public int istest;
        public String recordid;
    }

    public class Exconfigbean implements Serializable {
        public String id;  //对应Nextnodeinfo中cwid
        public String testtitle;  //对应Nextnodeinfo中name
        public int istest;  //对应Nextnodeinfoname中istest
        public String recordid;  //对应Nextnodeinfo中的recordid
    }
}
